package Chapter02;
public class zuoye5 {
    //5.计算自己的姓名对应的数字(ascii码)和
    public static void main(String[] args) {
        int sum=0;//和
        char lastname='杨';
        int last =lastname;
        System.out.println("姓对应的ascii码是:"+last);
        char name ='朔';
        int name1 =name;
        System.out.println("名对应的ascii码是:"+name1);
        sum =last+name1;
        System.out.println("姓和名加一起和是:"+sum);
    }
}
